from django.db import models

# Create your models here.
from django.contrib.auth.models import AbstractUser

class User(AbstractUser):
    # id = models.IntegerField(primary_key=True)     # 这写这个,引用查询的时候写代码的时候没有提示
    mobile = models.CharField(max_length=11, unique=True)

    class Meta:
        db_table='tb_users'
        verbose_name='用户管理'
        verbose_name_plural=verbose_name